package agentFramework.utils;

public class Pair<T1, T2>
{
	public T1 first;
	public T2 second;
	
	public Pair (T1 first, T2 second)
	{
		this.first = first;
		this.second = second;
	}

	public boolean equals(Object o)
	{
		Pair<T1, T2> p = (Pair<T1, T2>) o;
		
		if ( ((T1)(p.first)).equals(first) && ((T2)(p.second)).equals(second)) return true;
		
		return false;
	}
	
	public String toString ()
	{
		return "(" + first.toString() + ", " + second.toString() + ")";
	
	}
}
